
#include <types.h>
#include <nand.h>
#include <s5pc110.h>
#include <smdkv210single.h>

#if 0
typedef u32(*copy_sd_mmc_to_mem)
(u32 channel, u32 start_block, u16 block_size, u32 *trg, u32 init);


int copy_from_sd(void)
{
	ulong ch;
	u32 ret;

	ch = *(volatile u32 *)(0xD0037488);
	copy_sd_mmc_to_mem copy_bl2 = (copy_sd_mmc_to_mem) (*(u32 *) (0xD0037F98));


//	printf ("boot mmc chanel: %x\r\n", ch);
	if (ch == 0xEB000000) {
		ret = copy_bl2(0, 1, 1024, CFG_PHY_UBOOT_BASE, 0);
	}

 	if (ret == 0) {
		printf ("copy error\r\n");
 		while (1);
 	}
	else
		return 0;
}

#endif
